extends ../layout

block css
    link(rel='stylesheet', href='/css/base/ck_base.css', media='screen')
    link(rel='stylesheet', href='/css/user/ck_user2.css', media='screen')
    style(type='text/css').
      .breadcrumbs {
      margin-top: 20px;
      padding-bottom: 15px;
      color: #666;
      }
      .breadcrumbs a {
      color: #666;
      }
      .breadcrumbs a:hover {
      color: #65A5D1;
      }
      .breadcrumbs em {
      padding: 0 10px;
      font-family: simsun;
      }
block content

    .pageContainer.pt20.mb20
      .pageContainer.mb20
        .breadcrumbs
          a(href='/user/order') 我的订单
          em >
          a(href='#') 订单详情        

        .mcTitle.clearfix
          ul.user_tab1.fl
            li.curr
              a(href='javascript:;') 订单详情
        section.ddxq_wrap
          .wrap_box
            .box_header
              span
                | 状态：
                case order.state
                  when '1'
                    i.c_ff7f.fb 未付款
                  when '2'
                    i.c_ff7f.fb 已付款
                  when '3'
                    i.c_ff7f.fb 已成功
                  when '4'
                    i.c_ff7f.fb 待评价
                  when '5'
                    i.c_ff7f.fb 退款中
                  when '6'
                    i.c_ff7f.fb 已评价
                  when '7'
                    i.c_ff7f.fb 已关闭
                 
              span.ml25
                | 订单号：
                i #{order.orderId}
          .wrap_box
            .box_header
              | 交易信息
            ul.info_list.clearfix
              li 订单号：#{order.orderId}
              li
                | 下单时间：#{order.addTime}
              li
                span 支付时间：#{order.payTime}

        .tabBox_ddxq.mb20
          if course
            if course.length
              table.mcTab(cellspacing='0')
                colgroup
                  col(width='508')
                  col(width='200')
                  col(width='200')
                thead
                  tr
                    th
                      span.pl140 课程/套餐名称
                    th
                      span 课时
                    th
                      span 价格
                tbody
                  each val in course
                    tr
                      td
                        dl.picTxt
                          dt.pic.fl
                            a(target='_blank', href='/course/detail/#{val.id}')
                              img(src='#{val.img}', width='106', height='80')
                          dd.txt.fl.ml15
                            h4
                              a(target='_blank', href='/course/detail/#{val.id}') #{val.title}
                            .pt5
                              a.openChatWindow #{val.teacher}
                      td
                        span #{val.times}课时
                      td
                        span ￥#{val.price}
        s.clearfix
